<ui:composition
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        >

    <!-- Navigation bar -->

    <h:panelGroup id="navbarpanel">

        <div class="navbar">
            <div class="navbar-inner">
                <div class="container">

                    <!--<a class="brand" href="#{request.contextPath}/views/index.xhtml">Crime Qualification</a>-->

                    <div class="nav-collapse">

                        <ul class="nav">

                            <h:panelGroup rendered="#{not locationBean.currentLocationHomepage}">
                                <li><a href="#{request.contextPath}/views/index.xhtml">Домой</a></li>
                            </h:panelGroup>

                            <h:panelGroup rendered="#{locationBean.currentLocationHomepage}">
                                <li class="active"><a href="#{request.contextPath}/views/index.xhtml">Домой</a></li>
                            </h:panelGroup>

                        </ul>

                    </div>

                    <ul class="nav pull-right">
                        <li class="divider-vertical"></li>
                        <li>

                            <h:panelGroup id="signedInPanel">
                                <h:form styleClass="navbar-label-signedin" rendered="#{loginBean.loggedIn}"
                                        id="signedInForm"
                                        prependId="false"
                                        style="margin: 0 0 0;">

                                    Вы зашли как #{userDetailsBean.curUser.username}

                                    <h:commandLink action="#{loginBean.doLogout}" styleClass="badge badge-info"
                                                   value="выход">
                                    </h:commandLink>

                                </h:form>
                            </h:panelGroup>

                        </li>

                    </ul>

                    <!-- /.nav-collapse -->
                </div>
            </div>
            <!-- /navbar-inner -->
        </div>
    </h:panelGroup>

</ui:composition>